/**
 *
 */
package cn.aresoft.excel.annotation;



import cn.aresoft.excel.emuns.ValidateRuleEnumn;
import cn.aresoft.excel.handle.IFieldValidateHandler;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Excel注解定义
 * @author yangfeng
 * @version 2016-03-10
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcelValiate {

	/**校验规则*/
	ValidateRuleEnumn[] rules() default {};

	String[]  specialChar() default {};

	/**字符串常量*/
	String constantStr() default "";

	/**字段长度或保留小数点位数*/
	int length() default 0;

	/**自定义校验方法*/
	Class<? extends IFieldValidateHandler>  selfValidateHandler() default IFieldValidateHandler.class;

}
